package lei;

public class test {
    public static void main(String[] args) {
        //对lei的对象创建
        lei p1=new lei(16,"王一",170.3);
        lei p2=new lei(20,"周诗雨",165.5);
        lei p3=new lei(21);
        //赋值操作
        //对属性的读取
        /*System.out.println(p1.name);
        System.out.println(p1.age);
        System.out.println(p1.height);*/
        //对方法的读取
        p1.study();
        System.out.println(p1.age);
        System.out.println(p2.age);
        System.out.println(p3.age);

    }
}
